package com.sxbbc.common.core.mapper.jz;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sxbbc.common.core.entity.jz.CPointDetail;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 用户积分明细表 Mapper 接口
 * </p>
 *
 * @author leehao
 * @since 2019-05-07
 */
public interface CPointDetailMapper extends BaseMapper<CPointDetail> {

    IPage<CPointDetail> queryCustomerPointList(Page pageOne, @Param("param") CPointDetail detail);

    /**
     * 查询用户最新的积分明细
     * @param cid 用户id
     * @author leehao
     * @return com.sxbbc.common.core.entity.jz.CPointDetail
     */
    CPointDetail selectCustomerLastPoint(@Param("cid") Integer cid);
}
